package com.wtb.javatool.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wtb.javatool.dao.HomeworkMapper;
import com.wtb.javatool.entity.Homework;
import com.wtb.javatool.service.HomeworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeworkServiceImpl extends ServiceImpl<HomeworkMapper,Homework> implements HomeworkService {
    @Autowired
    private HomeworkMapper homeworkMapper;
    @Override
    public List<Homework> getHomeworkById(Long id) {
        return homeworkMapper.getHomeworkById(id);
    }

    @Override
    public int insertHomework(Homework homework) {
        return homeworkMapper.insert(homework);
    }


}
